<%@ Page Language="C#" MasterPageFile="~/Client/ClientMasterPage.master" AutoEventWireup="true" CodeFile="SearchProducts.aspx.cs" Inherits="Client_SearchProducts" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MenuPlaceHolder" Runat="Server">
    <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
    <table style="width: 481px">
        <tr>
            <td colspan="3" rowspan="2">
                <table style="width: 539px; height: 70px">
                    <tr>
                        <td style="width: 246px; height: 11px">
                            <asp:Label ID="Label1" runat="server" Text="Naziv proizvoda:"></asp:Label></td>
                        <td style="width: 378px; height: 11px">
                            <asp:TextBox ID="TextBoxName" runat="server" Width="229px"></asp:TextBox></td>
                        <td rowspan="2" style="width: 378px">
                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /></td>
                    </tr>
                    <tr>
                        <td style="width: 246px">
                            <asp:Label ID="Label2" runat="server" Text="Cena proizvoda:"></asp:Label></td>
                        <td style="width: 378px">
                            &nbsp;<asp:DropDownList ID="DropDownList1" runat="server">
                                <asp:ListItem>Veca od</asp:ListItem>
                                <asp:ListItem>Manja od</asp:ListItem>
                            </asp:DropDownList>
                            <asp:TextBox ID="TextBox2" runat="server" Width="140px"></asp:TextBox></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CellPadding="4" DataSourceID="ProductObjectDataSource" EmptyDataText="Nije pronadjen nijedan student."
                    ForeColor="#333333" GridLines="None" Height="141px" Width="329px">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:BoundField DataField="ProductName" HeaderText="ProductName" ReadOnly="True"
                            SortExpression="ProductName" />
                        <asp:BoundField DataField="ProductPrice" HeaderText="ProductPrice" ReadOnly="True"
                            SortExpression="ProductPrice" />
                        <asp:BoundField DataField="BuyURL" HeaderText="BuyURL" ReadOnly="True" SortExpression="BuyURL" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                <asp:ObjectDataSource ID="ProductObjectDataSource" runat="server" SelectMethod="getProducts"
                    TypeName="SajtLibrary.SajtClasses.Product">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="TextBoxName" Name="name" PropertyName="Text" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                &nbsp;&nbsp;
            </td>
        </tr>
    </table>
</asp:Content>

